package org.jrfe.net;

import java.io.Serializable;
/**
 * Network Package everything that is sent over network. Uses this as Base type
 * @author Kalvis Freimanis
 *
 */
public class NetPackege implements Serializable {

	/**
	 * Automatic generated serialVersionUID
	 */
	private static final long serialVersionUID = -2122255657792044425L;

	/**
	 * Package type
	 */
	protected int type;
	
	/**
	 * Package content
	 */
	protected Object content;
	
	public NetPackege() {
		type = -1;
		content = null;
	}
	
	public NetPackege(int type, Object content) {
		this.type = type;
		this.content = content;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public Object getContent() {
		return content;
	}

	public void setContent(Object content) {
		this.content = content;
	}
	
}
